import request from '@/utils/request'

// 查询图片标注列表
export function listLabel(query) {
  return request({
    url: '/sys_label/label/list',
    method: 'get',
    params: query
  })
}

// 查询图片标注详细
export function getLabel(photoId) {
  return request({
    url: '/sys_label/label/' + photoId,
    method: 'get'
  })
}

// 新增图片标注
export function addLabel(data) {
  return request({
    url: '/sys_label/label',
    method: 'post',
    data: data
  })
}

// 修改图片标注
export function updateLabel(data) {
  return request({
    url: '/sys_label/label',
    method: 'put',
    data: data
  })
}

// 删除图片标注
export function delLabel(photoId) {
  return request({
    url: '/sys_label/label/' + photoId,
    method: 'delete'
  })
}
